#include <QStylePainter>
#include <QWindow>
#include "BondInfoWidget.h"
#include "QbModule.h"
#include "widgets/cefview/CefViewWidget.h"
//#include "Web/QbCefQueryHandler.h"

BondInfoWidget::BondInfoWidget(const QString& title, QWidget* parent)
    : QWidget(parent)
    , m_title(title)
{
	setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    initCtrl();
}

BondInfoWidget::~BondInfoWidget()
{
}

void BondInfoWidget::initCtrl()
{
    QHBoxLayout*  mainLayout = new QHBoxLayout;       //垂直布局

    //个券详情
    m_webwidget = new CefViewWidget("https://qb3.idbhost.com:28888/bond/bondProfile?bondkey=G0001242021FINPBB10&listedmarket=CIB&marketType=bondProfile&entrance=QBRT&issuerCode=G000124&cdcAuthNo=1", nullptr, this);
    mainLayout->addWidget(m_webwidget);

    this->setLayout(mainLayout);
}
